package com.jyy.prefabricated.controller;

import com.jyy.prefabricated.entity.QuestionDetails;
import com.jyy.prefabricated.service.QuestionDetailsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 题目详情表(QuestionDetails)表控制层
 *
 * @author mrl
 * @since 2021-05-27 14:54:37
 */
@RestController
@RequestMapping("questionDetails")
public class QuestionDetailsController {
    /**
     * 服务对象
     */
    @Resource
    private QuestionDetailsService questionDetailsService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public QuestionDetails selectOne(Integer id) {
        return this.questionDetailsService.queryById(id);
    }

}